package tedu.cn.submarine;

import javax.swing.ImageIcon;

public class NuBomb extends SeaObject{
    public NuBomb(int x,int y){
        super(50,125,x,y,2);
    }

    public ImageIcon getImage(){
        return Images.nubomb;
    }

    public void move(){
        setY(getY()-getSpeed());
    }

    public boolean isOutOfBounds() {
        return getY() <= 110-50;
    }
}
